package tarena.netctoss.po;

import java.util.Date;

/**
 * 用户所拥有的业务实体
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-3-1
 */
public class Business implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;
	/** 业务登录名 */
	private String loginname;
	/** 登录密码 */
	private String loginpassword;
	/** 实验室IP */
	private String labip;
	/** 业务状态 */
	private Integer status;
	/** 资费类型 */
	private Integer priceid;
	/** 登录时间 */
	private Date enrolldate;
	/** 下线时间 */
	private Date closedate;
	/** 该业务的拥有者 */
	private User user;

	// Constructors
	/** default constructor */
	public Business() {
	}

	/** minimal constructor */
	public Business(String loginname, String loginpassword, String labip,
			Integer status, Date enrolldate) {
		this.loginname = loginname;
		this.loginpassword = loginpassword;
		this.labip = labip;
		this.status = status;
		this.enrolldate = enrolldate;
	}

	/** full constructor */
	public Business(String loginname, String loginpassword, String labip,
			Integer status, Integer priceid, Date enrolldate, Date closedate) {
		this.loginname = loginname;
		this.loginpassword = loginpassword;
		this.labip = labip;
		this.status = status;
		this.priceid = priceid;
		this.enrolldate = enrolldate;
		this.closedate = closedate;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLoginname() {
		return this.loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getLoginpassword() {
		return this.loginpassword;
	}

	public void setLoginpassword(String loginpassword) {
		this.loginpassword = loginpassword;
	}

	public String getLabip() {
		return this.labip;
	}

	public void setLabip(String labip) {
		this.labip = labip;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getPriceid() {
		return this.priceid;
	}

	public void setPriceid(Integer priceid) {
		this.priceid = priceid;
	}

	public Date getEnrolldate() {
		return this.enrolldate;
	}

	public void setEnrolldate(Date enrolldate) {
		this.enrolldate = enrolldate;
	}

	public Date getClosedate() {
		return this.closedate;
	}

	public void setClosedate(Date closedate) {
		this.closedate = closedate;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}